package com.huawei.appgallery.wlanapp.ui.card;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.foundation.ui.framework.widget.button.DownloadButton;
import java.util.List;
import o.azb;
import o.cea;
import o.cgs;
import o.cgy;
import o.cgz;
import o.chy;
import o.deh.b;

public class WlanAppCard extends BaseDistCard {
    private ImageView ʼ;
    private View ʽ;
    private TextView ˋ;

    public WlanAppCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        ˏ((ImageView) view.findViewById(b.ˏ));
        azb.ॱ(ʼॱ());
        azb.ˋ(view, b.ʼ);
        ˎ((ImageView) view.findViewById(b.ॱ));
        ॱ((TextView) view.findViewById(b.ॱॱ));
        ˊ((TextView) view.findViewById(b.ʽ));
        ˋ((DownloadButton) view.findViewById(b.ʻ));
        this.ʼ = (ImageView) view.findViewById(b.ˋ);
        this.ˋ = (TextView) view.findViewById(b.ᐝ);
        this.ʽ = view.findViewById(b.ˎ);
        azb.ʻ(this.ʽ);
        ʽ(view);
        return this;
    }

    private void ˊ(List<String> list) {
        if (this.ʼ != null) {
            if (cgs.ˋ(list)) {
                this.ʼ.setVisibility(8);
                return;
            }
            String str = (String) list.get(0);
            if (cgy.ˎ(str)) {
                this.ʼ.setVisibility(8);
                return;
            }
            this.ʼ.setVisibility(0);
            cea.ˏ(this.ʼ, str, "iconflag");
        }
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        WlanAppBean wlanAppBean = (WlanAppBean) cardBean;
        if (this.ʽ != null) {
            this.ʽ.setVisibility(ˊᐝ() ? 0 : 4);
        }
        if (cgy.ˏ(wlanAppBean.memo_)) {
            if (this.ˋ != null) {
                this.ˋ.setVisibility(4);
            }
        } else if (this.ˋ != null) {
            this.ˋ.setText(wlanAppBean.memo_);
            this.ˋ.setVisibility(0);
        }
        ˊ(wlanAppBean.ॱᐝ());
    }

    public void ॱ(chy o_chy) {
    }
}
